package com.gillion.grule.client.logger;

import java.util.Objects;

public class BaseLog {
    protected String groupId;
    protected String artifactId;
    protected String version;
    protected Long executeTime;



    // Override equals method
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BaseLog baseLog = (BaseLog) o;
        return Objects.equals(groupId, baseLog.groupId) &&
                Objects.equals(artifactId, baseLog.artifactId) &&
                Objects.equals(version, baseLog.version) &&
                Objects.equals(executeTime, baseLog.executeTime);
    }

    // Override hashCode method
    @Override
    public int hashCode() {
        return Objects.hash(groupId, artifactId, version, executeTime);
    }

    // Override toString method
    @Override
    public String toString() {
        return "BaseLog{" +
                "groupId='" + groupId + '\'' +
                ", artifactId='" + artifactId + '\'' +
                ", version='" + version + '\'' +
                ", executeTime=" + executeTime +
                '}';
    }

    public String getGroupId() {
        return this.groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getArtifactId() {
        return this.artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public String getVersion() {
        return this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
    public Long getExecuteTime() {
        return this.executeTime;
    }

    public void setExecuteTime(Long executeTime) {
        this.executeTime = executeTime;
    }
}